package com.eight.cloud.openfeign.admin.api;


import com.eight.cloud.core.global.model.AppUser;
import com.eight.cloud.openfeign.admin.factory.AppFallbackFactory;
import com.eight.cloud.openfeign.admin.vo.AppVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @ClassName: AppClient
 * @Author: TXC
 * @Date: 2025-01-07 18:28
 **/
@FeignClient(value = "cloud-admin", contextId = "appClient", fallbackFactory = AppFallbackFactory.class)
public interface AppClient {
    @GetMapping("/app/querySecret")
    AppUser querySecretKey(@RequestParam("secretId") String secretId);

    @GetMapping("/app/queryAppid")
    AppUser queryAppByUuid(@RequestParam("appid") String appid);

    @GetMapping("/app/{uuid}")
    AppVo query(@PathVariable("uuid") String uuid);
}
